/*************************************************************************
	> File Name: linklist.h
	> Author: Maureen 
	> Mail: Maureen@qq.com 
	> Created Time: 一  8/30 17:21:00 2021
 ************************************************************************/

#ifndef _LINKLIST_H
#define _LINKLIST_H

//链表外骨骼


//获取字段的偏移量
#define offset(T, name) (long long)(&(((T *)(0))->name))
//获取结构体的首地址
#define HeadAddr(p, T, name) (T *)((char *)(p) - offset(T, name))

struct LinkNode {
    struct LinkNode *next;
};


#endif
